package com.ddwl.message.repository;

import com.ddwl.message.model.Sos;
import com.ddwl.schema.bo.base.LocationBo;
import com.ddwl.schema.bo.base.PageBo;
import com.ddwl.schema.bo.message.SosPageBo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/29 19:41
 */
public interface SosRepositoryAdvance {

    Page<Sos> findPage(PageBo<SosPageBo> pageBo);

    void delete(String id);

    List<Sos> findNear(LocationBo loc);
}
